package design_pattern.TwoPhaseTermination;

/**
 * @Author: 蔡翔
 * @Date: 2019/11/18 14:26
 * @Version 1.0
 */
public class CounterTest {
    public static void main(String[] args) {
        CounterIncreasment counterIncreasment = new CounterIncreasment();
        counterIncreasment.start();
        try {
            Thread.sleep(10000);
            counterIncreasment.close();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }


    }
}
